﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/stageWipProfile/stageWipProfileDetails"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="stageWipProfile"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/tv/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <a class="btn btn-green" data-toggle="dialog"
       data-url="${request.getContextPath()}/stageWipProfile/updateStageWipProfileDetails"
       data-title="新增">新增</a>
<table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
    <thead>
    <tr>
        <th>prod</th>
        <th>lotid</th>
        <th>Pri</th>
        <th>lottype</th>

        <th>owner</th>
        <th>stageid</th>
        <th>step</th>
        <th>queue</th>

        <th>ppid</th>
        <th>qty</th>
        <th>status</th>
        <th>EQPid</th>

        <th>statusenter time</th>
        <th>holdcode</th>
        <th>comment</th>
        <th width="150">操作</th>
    </tr>
    </thead>
    <tbody>
    <g:each in="${stageWipProfileDetails}" status="i" var="stageTrendInstance">
        <tr>
            <td>${stageTrendInstance.PROD}</td>
            <td>${stageTrendInstance.LOT_ID}</td>
            <td>${stageTrendInstance.PRIORITY}</td>
            <td>${stageTrendInstance.LOT_TYPE}</td>

            <td>${stageTrendInstance.OPERATOR}</td>
            <td>${stageTrendInstance.STAGE_ID}</td>
            <td>${stageTrendInstance.STEP_NAME}</td>
            <td>${stageTrendInstance.LAST_UPDATED}</td>

            <td>${stageTrendInstance.PPID}</td>
            <td>${stageTrendInstance.MAIN_QTY}</td>
            <td>${stageTrendInstance.STATUS}</td>
            <td>${stageTrendInstance.EQPID}</td>

            <td>${stageTrendInstance.STATUSENTER_TIME}</td>
            <td>${stageTrendInstance.HOLD_CODE}</td>
            <td>${stageTrendInstance.COMMENTS}</td>
            <td>
                <a class="btn btn-green" data-toggle="dialog"
                   data-url="${request.getContextPath()}/stageWipProfile/updateStageWipProfile?id=${stageTrendInstance.ID}"
                   data-title="编辑">编辑</a>
                <a class="btn btn-red" data-confirm-msg="确定要删除该行信息吗？"
                   data-toggle="doajax" data-type="DELETE"
                   data-callback=function(){$.CurrentNavtab.navtab('refresh')}
                   href="${request.getContextPath()}/stageWipProfile/deleteStageWipProfile?id=${stageTrendInstance.ID}">删除</a>
            </td>
        </tr>
    </g:each>
    </tbody>
</table>

</div>

<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format: 'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView: 1,
            minView: 1,
            pickerPosition: "bottom-left",
            language: 'zh-CN',
            startDate: '2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>